<include file="Public:pagerForm" />
<taglib name="html" />
    <SCRIPT LANGUAGE="JavaScript">

        function listColumn(id){
            window.location = '__URL__/index/column_id/'+id;
        }
        function selectColumn(){
            var result= PopModalWindow('__APP__/Column/treeSelect/',268,365);
            if(typeof(result) == "undefined") return;
            $('columnName').value=result[0][0];
            $('column_id').value=result[0][1];
        }
 
    </SCRIPT>
    
    <script>
    	function addcart(strSection){
				var i;
				var ids='';
				var	colInputs = document.getElementById(strSection).getElementsByTagName("input");
				for	(i=1; i < colInputs.length; i++)
				{

					if(colInputs[i].checked==true){

						if(ids==''){
							ids=colInputs[i].value;
						}else {
							ids=ids+'_'+colInputs[i].value;
						}
					}
				}

				if(ids!=''){
					window.open('__URL__/add_cart/ids/'+ids);
				}else{
					alert('请先勾选要添加操作的产品');
				}
		}
    </script>

	<div class="pageHeader">
	<form method="post" action="/Goods/index" onsubmit="return navTabSearch(this);">
	<div class="searchBar">
		
				名称：<input type="text" class="medium  textInput" name="key">

		<button type="submit">检索</button>
		
	</div>
	</form>
    </div>

<div class="pageContent j-resizeGrid">
		<div class="panelBar">
		<ul class="toolBar">
			<li class=""><a rel="add" height="550" width="600" target="dialog" href="/Goods/add/" class="add"><span>添加</span></a></li>
			<li class=""><a title="确定要删除吗?" rel="c1" postType="abc" target="selectedTodo" href="/Goods/delete" class="delete"><span>删除</span></a></li>
			<li class=""><a height="550" width="600" target="dialog" href="/Goods/edit/?id={adpos}" class="edit"><span>修改</span></a></li>
		</ul>
		</div>
		<div class="grid">
<html:list id="checkList" style="table" name="action" checkbox="true" action="true" datasource="list" show="category|getCategoryName:分类|80,brand|getBrandName:品牌|80,product_code:产品编号|150,old_product_code:原产品编号|100,product_name:产品名称|80,unit:单位|80,price:单价|80,purchase_price:进货价|80,commission:提成成本|80,lower:下限|80,integral:积分|60" actionlist="dwzActionWidth:200,edit:编辑:id:dwzOpenWh|600-550,del:删除:id:dwzOpenWh|300-300" />
	 </div>
	<div class="panelBar">
		<div class="pages">
			<span>共{$totalCount}条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$currentPage}"  ></div>
	</div>	 	 
</div>